package com.qf.huigou.mapper;

import com.qf.huigou.pojo.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 发未染雪
* @description 针对表【tb_cart】的数据库操作Mapper
* @createDate 2022-12-10 15:30:31
* @Entity com.qf.huigou.pojo.Cart
*/
public interface CartMapper {

    int deleteByPrimaryKey(Long id);

    int insert(@Param("fk_cart_user_id") int fk_cart_user_id,
               @Param("fk_cart_good_id") int fk_cart_good_id,
               @Param("cart_good_price") int cart_good_price);

    int insertSelective(Cart record);

    Cart selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Cart record);

    int updateByPrimaryKey(Cart record);


   List<Cart> searchAllCartByUserId(int userId);



}
